PowerTCP Mail for .NET
Write(Byte[],Byte[],Int32,Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > SegmentedStream Class > Write Method : Write(Byte[],Byte[],Int32,Int32) Method




buffer
The storage location of the data.
delimiter
The sequence to find.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.
Write data to the stream until a delimiter is reached.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Write( _
   ByVal buffer() As Byte, _
   ByVal delimiter() As Byte, _
   ByRef offset As Integer, _
   ByRef count As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SegmentedStream
Dim buffer() As Byte
Dim delimiter() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Boolean
 
value = instance.Write(buffer, delimiter, offset, count)
C# 
public bool Write( 
   byte[] buffer,
   byte[] delimiter,
   ref int offset,
   ref int count
)
Managed Extensions for C++ 
public: bool Write( 
   byte[]* buffer,
   byte[]* delimiter,
   ref int offset,
   ref int count
) 
C++/CLI 
public:
bool Write( 
   array<byte>^ buffer,
   array<byte>^ delimiter,
   int% offset,
   int% count
) 

Parameters

buffer
The storage location of the data.
delimiter
The sequence to find.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.

Return Value

true if delimiter is found; false otherwise.

Remarks

This method writes data until the delimiter is found (returning true and not writing the delimiter) or writes the entire buffer (returning false).

Flush must be called after writing if this method is being used.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.